package mapData;

import java.util.*;
import java.awt.Color;


public class Map
{
    public String name;
    public static int width;
    public static int height;
    public static Color computer; // red, blue, yellow, or white only
    public static Color player;
    
    public ArrayList<Obstruction> obstrList = new ArrayList<Obstruction>();
    public ArrayList<UnitRow> plyrRowList = new ArrayList<UnitRow>();
    public ArrayList<UnitRow> cmpRowList = new ArrayList<UnitRow>();
    
    public Map(String mapName, int w, int h, Color plyr, Color cmp)
    {
        name = mapName;
        width = w;
        height = h;
        computer = cmp;
        player = plyr;
    }
    
    public void addObstruction(int x, int y, int w, int h)
        //get input from line of map file and add obstruction to map data
    {
        Obstruction add = new Obstruction(x, y, w, h);
        obstrList.add(add);
    }
   
    public int getWidth()
    {
        return width;
    }
    
    public int getHeight()
    {
        return height;
    }
    
    public Color getPlayerColor()
    {
        return player;
    }
    
    public Color getCompColor()
    {
        return computer;
    }
    
}










